﻿using System;

namespace SiMay.Sockets.Tcp.TcpConfiguration
{
    public interface ITcpSocketSaeaConfiguration
    {
        /// <summary>
        /// 接收数据缓存大小
        /// </summary>
        int ReceiveBufferSize { get; set; }

        /// <summary>
        /// 发送数据缓存大小
        /// </summary>
        int SendBufferSize { get; set; }
        
        /// <summary>
        /// 接收超时时间
        /// </summary>
        TimeSpan ReceiveTimeout { get; set; }

        /// <summary>
        /// 发送超时时间
        /// </summary>
        TimeSpan SendTimeout { get; set; }

        /// <summary>
        /// 是否开启nagle算法
        /// </summary>
        bool NoDelay { get; set; }

        /// <summary>
        /// 是否重用IP地址
        /// </summary>
        bool ReuseAddress { get; set; }
    }
}
